/**
 * Created by luqidong on 2017/6/12.
 */
export const imgdata = {
    3: '//common-1253410441.file.myqcloud.com/coverimg/20170605095233.png',
    4: '//common-1253410441.file.myqcloud.com/coverimg/20170605095234.png',
    5: '//common-1253410441.file.myqcloud.com/coverimg/20170605095238.png',
    1: '//common-1253410441.file.myqcloud.com/coverimg/20170605095235.png',
    2: '//common-1253410441.file.myqcloud.com/coverimg/20170605095236.png',
    7: '//common-1253410441.file.myqcloud.com/coverimg/20170605095237.png',
    9: '//common-1253410441.file.myqcloud.com/coverimg/20170928190440.png',
    6: '//common-1253410441.file.myqcloud.com/coverimg/20170605095239.png',
    11: '//common-1253410441.file.myqcloud.com/coverimg/20170605095238.png',
    70: '//common-1253410441.file.myqcloud.com/coverimg/20170605095233.png',
    73: '//common-1253410441.file.myqcloud.com/coverimg/20170605095233.png'
};
export const namesource = {
    1: '竞彩足球',
    2: '竞彩篮球',
    3: '双色球',
    4: '超级大乐透',
    5: '福彩3D',
    6: '排列3',
    7: '11选5',
    8: '江西时时彩',
    9: '江西快3'
};

export const h5jump = {
    1: '/buy/football',
    2: '/buy/basketball',
    3: '/buy/ssq',
    4: '/buy/dlt',
    5: '/buy/fc3d',
    6: '/buy/pl3',
    7: '/buy/elevenfive',
    8: '江西时时彩',
    9: '江西快3'
};

export const jumptype = {
    1: '6006',              // 竞彩足球
    2: '6007',            // 竞彩篮球
    3: '6001',                   // 双色球投注
    4: '6002',                   // 大乐透投注
    5: '6003',                 // 福彩3d投注
    6: '6004',                // 排列3投注
    7: '6005',            // 十一选五投注
    9: '6015',
    10: '6008',                 // 双色球订单
    11: '6009',                 // 大乐透订单
    12: '6010',               // 福彩3d订单
    13: '6011',              // 排列3订单
};
export const jumpbuytype = {
    3: '6008',                 // 双色球订单
    4: '6009',                 // 大乐透订单
    5: '6010',               // 福彩3d订单
    6: '6011',              // 排列3订单
};

export const getsplit = (value, num)=> {
    return value.length > num ? value.substr(0, num) : value;
};

export const seasons = [
    {
        label: '当天',
        value: '0',
    },
    {
        label: '最近一周',
        value: '1',
    },
    {
        label: '最近一月',
        value: '2',
    },
    {
        label: '最近三月',
        value: '3',
    }
];


//单例
export const singleton = function (fn) {
    var result;
    return function () {
        console.log('result', result);
        return result || ( result = fn.apply(this, arguments) );
    }
};

export const paytabs = [
    {
        ID: 3,
        payicon: '//common-1253410441.file.myqcloud.com/coverimg/20170601184552.png',
        name: '系统支付',
        subtitle: "系统支付"
    }
    , {
        ID: 1,
        payicon: '//common-1253410441.file.myqcloud.com/coverimg/20170601184552.png',
        name: '支付宝',
        subtitle: "快捷方便，新用户免3元"
    }, {
        ID: 2,
        payicon: '//common-1253410441.file.myqcloud.com/coverimg/20170601184553.png',
        name: '微信支付',
        subtitle: "快捷方便，新用户免3元"
    }];

export const infomationtypeid = {
    1: 43,
    2: 44,
    3: 38,
    4: 39,
    5: 40,
    6: 41,
    7: 42,
};
export const playinfotypeid = {
    3: 47,
    4: 48,
    5: 50,
    6: 51,
    7: 49,
    9: 5400,
};

export function getAppname(appcode) {
    switch (parseInt(appcode)) {
        case 1:
            return '日日中彩票';
        case 2:
            return '懂彩帝';
        case 3:
            return '彩民彩票';
        case 4:
            return '六合彩';
        case 5:
            return '福利彩票';
        case 6:
            return '彩票开奖';
        case 7:
            return '同城彩票';
        case 8:
            return '彩票预测';
        case 9:
            return '实时彩';
        case 10:
            return '双色球';
        default:
            return '日日中彩票';
    }
}


//WebPageTypeKuaiSanBet = 6015,               // 快3投注
//WebPageTypeScorePage = 6016,                // 比分页面
//WebPageTypeMaster = 6017,                   // 大神首页
//WebPageTypeZiXun = 6018,                    // 资讯首页
//WebPageTypeLotteryDraw = 6019,              // 开奖首页
//WebPageTypeLotteryDrawList = 6020,          // 对应彩种开奖列表
//WebPageTypeTrendChart = 6021,               // 走势图首页
//WebPageTypeActivity = 6022,                 // 活动首页